package com.tencreat.mapper.mall;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tencreat.domain.mall.MallMessageInform;
import com.tencreat.domain.mall.dto.MallMessageInformApiOrderDTO;
import com.tencreat.domain.mall.vo.MallMessageInformApiOrderVO;
import com.tencreat.domain.mall.vo.MallMessageInformApiSystemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消息通知Mapper接口
 *
 * @author tencreat
 * @date 2021-11-25
 */
public interface MallMessageInformMapper extends BaseMapper<MallMessageInform> {


    /**
     * 查看信息系统消息列表
     * @param userId 用户ID
     * @return 系统消息列表
     */
    List<MallMessageInformApiSystemVO> system(Long userId);

    /**
     * 查看订单消息列表
     * @param uuid 用户ID
     * @return 订单消息列表
     */
    List<MallMessageInformApiOrderVO> order(@Param("uuid") Long uuid, Page<MallMessageInformApiOrderDTO> page);

}
